TemplateSendMessage - ConfirmTemplate
confirm_template_message = TemplateSendMessage(
alt_text='Confirm template',
template=ConfirmTemplate(
顯示問題
text='Are you sure?',
actions=[
類似後臺動作使用者會看不到過程只會看到結果
PostbackAction(
label='postback',
display_text='postback text',
要傳到後端的資料
data='action=buy&itemid=1'
),
MessageAction(
label='message',
text='message text'
)
]
)
)
Template with two action buttons.
type
String Required
confirm
text
String Required
Message text
Max character limit: 240
必須兩個
actions
Array of action objects Required
Action when tapped
Set 2 actions for the 2 buttons